﻿<!--#include file="../Include/Config.asp"-->
<link rel="stylesheet" href="../Css/Admin.css" type="text/css" />
<script language="javascript" src="../Js/Ajax_func.js"></script>
<script language="javascript" src="../Js/QuestAdd.js"></script>
<script language="javascript" type="text/javascript">
function defQuessList(val,act){
   send_request("GET","QuestionAddAjax.asp?Survey_id="+val+"&action="+act+"",null,"text",listFeedback);
}

function listFeedback() {
	if (http_request.readyState == 4) { // 判断对象状态
		if (http_request.status == 200) { // 信息已经成功返回，开始处理信息
			//alert(http_request.responseText);
			document.getElementById("Quesstion_add_head").innerHTML =http_request.responseText ;
			}
			else { //页面不正常
			alert("您所请求的页面有异常。");
		}
	 }
}
</script>
<%dim Survey_id,sql
dim Survey_content,Survey_content_length
Survey_id=request.QueryString("Survey_id")
CheckNum(Survey_id)
sql="select * from survey where Survey_id="&Survey_id
rs.open sql,conn,1,1
if rs("Survey_isAuditing")=1 then
call ShowAlert("对不起，已经审核的问卷不可以再编辑题目","" )
end if
rs.close
%>
<body onLoad="defQuessList(<%=Survey_id%>,'start');">
<div id="Quesstion_add_head">
<!--ajax-->
</div>
<div id="Quesstion_add_page">
<a href="#"onclick="javascript:defQuessList(<%=Survey_id%>,'start');">首页</a>
<a href="#"onclick="javascript:defQuessList(<%=Survey_id%>,'last');">上一页</a>
<a href="#"onclick="javascript:defQuessList(<%=Survey_id%>,'next');">下一页</a>
<a href="#"onclick="javascript:defQuessList(<%=Survey_id%>,'end');">尾页</a>
</div>

<div id="Question_add_middle">
<form name="form" action="" method="post">
<table width="585" border="0" cellspacing="0" cellpadding="0" class="table">
  <tr>
    <th>添加新的题目到此问卷下</th>
    </tr>
  <tr>
    <td>
请选择题目类型：单选题<input name="Question_type" type="radio" value="1" onClick="doChecked(this,<%=Survey_id%>);">| 多选题<input name="Question_type" type="radio" value="2" onClick="doChecked(this,<%=Survey_id%>);">|  带文字输入的单选题<input name="Question_type" type="radio" value="3" onClick="doChecked(this,<%=Survey_id%>);">| 带文字输入的多选题<input name="Question_type" type="radio" value="4" onClick="doChecked(this,<%=Survey_id%>);">|  问答题<input name="Question_type" type="radio" value="5" onClick="doChecked(this,<%=Survey_id%>);">
</td>
    </tr>
</table>
</form>
</div>
<div id="Question_add_content">
<!--ajax-->
</div>
</body>
